package com.github.soiff.shadow;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SoiffShadowApplication {

	public static void main(String[] args) {
		SpringApplication.run(SoiffShadowApplication.class, args);
	}

	public static class Shadow {
		public String hello (Object object) {
			return "Hello " + String.valueOf(object) + "!";
		}
	}
	@Bean
	@ConditionalOnMissingBean
	public Shadow getShadow() {
		return new Shadow();
	}
}
